home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
041-050
/
amok44
/
m2ced
/
txt
/
ced.def
next >
Wrap
Text File
|
1993-11-04
|
1KB
|
49 lines
(**********************************************************************
:Program. CED.def
:Contents. Communication with CED
:Author. Steffen Reith
:Address. Hessenstr. 64, D-8700 Würzburg
:Copyright. Shareware
:Language. Modula-2
:Translator. M2Amiga A+L V3.2d
:Imports. req
:History. V1.0 1.June 1990
**********************************************************************)
DEFINITION MODULE CED;
FROM req IMPORT PathTypePtr;
TYPE FehlerType=(ok,noReply,noCED);
VAR Fehler:FehlerType;
Status:PathTypePtr;
Ergeb :LONGINT;
(* If you get a FALSE you will find the reason in Fehler *)
PROCEDURE PutMsg2CED(Command:ARRAY OF CHAR):BOOLEAN;
(*:Input. ARexx-Commandstring
:Semantic. Send message to CED
:Result. Signal for an error
:Note. Lookup at "Fehler" for the reason of an error
*)
PROCEDURE TalkCED (Command:ARRAY OF CHAR):BOOLEAN;
(*:Input. ARexx-Commandstring
:Semantic. Send message to CED an wait for answer
:Result. Signal for an error
:Note. Lookup at "Fehler" for the reason of an error
:Note. Status contains a pointer to a string. Release it with KillString!!
:Note. Ergeb contains any numbers received from CED
*)
PROCEDURE KillString(Ptr:PathTypePtr);
(*:Input. A string received from CED
:Semantic. Release memory allocated by CED
*)
END CED.